<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 300px;
            height: 200px;
            border: 15px solid pink;
            /* border-image-source: url(images/border.jpg);
            border-image-slice: 170;
            border-image-width: 30px;
            border-image-repeat: round; */
            /* 复合写法 */
            border-image: url(images/border.jpg) 170/30px round;
        }
    </style>
</head>

<body>
    <div>123</div>
</body>

</html>